import { baseUrl, doRequestPost, doRequestDel, doRequestPut, doRequestGet } from '@/utils/request'

export function classImageList(query) {
  return doRequestPost(baseUrl + 'cms/picture/relation/class/list' + '?time=' + (+new Date()), query)
}
export function classImageDelete(query) {
  return doRequestPost(baseUrl + 'cms/picture/relation/batch/delete' + '?time=' + (+new Date()), query)
}
export function classImageAdd(query) {
  return doRequestPost(baseUrl + 'cms/picture/relation/add' + '?time=' + (+new Date()), query)
}
export function classImageUpdate(query) {
  return doRequestPost(baseUrl + 'cms/picture/relation/update' + '?time=' + (+new Date()), query)
}
export function imageWordList(query) {
  return doRequestPost(baseUrl + 'cms/picture/tag/list' + '?time=' + (+new Date()), query)
}
export function imageWordDelete(query) {
  return doRequestPost(baseUrl + 'cms/picture/tag/batch/delete' + '?time=' + (+new Date()), query)
}
export function imageWordAdd(query) {
  return doRequestPost(baseUrl + 'cms/picture/tag/add' + '?time=' + (+new Date()), query)
}
export function imageWordUpdate(query) {
  return doRequestPost(baseUrl + 'cms/picture/tag/update' + '?time=' + (+new Date()), query)
}
export function imageFileDelete(query) {
  return doRequestPost(baseUrl + 'file/oss/batch/delete' + '?time=' + (+new Date()), query)
}
export function imageFileParse(query) {
  return doRequestPost(baseUrl + 'file/parse' + '?time=' + (+new Date()), query)
}
export function galleryAll(query) {
  return doRequestGet(baseUrl + 'cms/picture/library/all' + '?time=' + (+new Date()), query)
}
export function galleryAdd(query) {
  return doRequestPost(baseUrl + 'cms/picture/library/add' + '?time=' + (+new Date()), query)
}
export function galleryUpdate(query) {
  return doRequestPost(baseUrl + 'cms/picture/library/update' + '?time=' + (+new Date()), query)
}
export function galleryClass(query) {
  return doRequestPost(baseUrl + 'cms/picture/library/class/list' + '?time=' + (+new Date()), query)
}
export function galleryPictureList(query) {
  return doRequestPost(baseUrl + 'cms/picture/library/picture/list' + '?time=' + (+new Date()), query)
}
export function galleryPictureAdd(query) {
  return doRequestPost(baseUrl + 'cms/picture/library/picture/add' + '?time=' + (+new Date()), query)
}
export function galleryPictureUpdate(query) {
  return doRequestPost(baseUrl + 'cms/picture/library/picture/update' + '?time=' + (+new Date()), query)
}
export function galleryPictureDelete(query) {
  return doRequestPost(baseUrl + 'cms/picture/library/picture/delete' + '?time=' + (+new Date()), query)
}

export const imageUploadUrl = baseUrl + 'file/oss/batch/upload'
